//
//  NetworkManager+UserName.swift
//  Weibo(Swift)
//
//  Created by 阳 on 16/7/13.
//  Copyright © 2016年 阳. All rights reserved.
//

import UIKit
extension NetworkManager
{
    func requestUserName(userName: String, callBack: ([String: AnyObject]?)->Void) {
        let urlString = "https://httpbin.org/get"
        let parameters = ["username": userName]
        
        self.request(urlString, type: .GET, parameters: parameters) { (response) -> Void in
            callBack(response)
        }
    }
}